package com.ljm.file.record.controller;

import com.ljm.common.dto.BaseResult;
import com.ljm.common.util.ResultUtil;
import org.springframework.web.bind.annotation.*;
import org.springframework.validation.annotation.Validated;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam;
import javax.annotation.Resource;
import java.util.List;
import com.ljm.file.record.api.SysFileApi;
import com.ljm.file.record.dto.SysFileDto;

import org.springframework.stereotype.Controller;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author HuamingChen
 * @since 2020-09-28
 */
@Api(tags="平台文件信息")
@Controller
@RequestMapping("/file/record")
public class SysFileController {

    /**
    * 接口
    */
    @Resource
    private SysFileApi iSysFileApi;

    @ApiOperation(value="分页获取")
    @RequestMapping(value = "/getByPage",method = RequestMethod.POST)
    @ResponseBody
    public BaseResult getByPage(@RequestBody SysFileDto dto){
        return ResultUtil.successData(iSysFileApi.getFileRecordByPage(dto));
    }
}
